<%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="org.jeecgframework.web.util.StaticValue"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<script type="text/javascript" src="plug-in/jquery/jquerysession.js"></script>
<script>
    $(document).ready(function () {
        $.ajax({
            type:"GET",
            url:"cbsServiceController.do?getPerson",
            dataType:"json",
            success:function (data) {
                var tbs = data.obj;
               var  html = "<option>--请选择--</option>";
                for (i in tbs){
                        html += '<option  value='+tbs[i].id+'>'+tbs[i].realname+'</option>';
                }
                $("#personLiable").html(html);

            }
        })
    })
    function chossePerson() {
        var name = $("#personLiable").val();
        var checkText=$("#personLiable").find("option:selected").text();
        $.session.set('personId',name);
        $.session.set('name',checkText);
    }
    function getText() {
        var desption = $("#desption").val();
        if(desption==""){
            tip("请填写服务描述信息");
            // return false;
        }
        $.session.set("desption",desption);
    }
</script>
<html>
<head>
    <title>内部转派</title>
</head>
<body>
<table class="nobordertable noborder" style="border: none;">
    <tbody>
    <tr>
        <td class="al_r" width="30%">
        <label>责任人:</label>
        </td>
        <td width="70%">
            <select id="personLiable" onchange="chossePerson()">
            </select>
        </td>
    </tr>
    <tr>
        <td class="al_r" width="30%" valign="top">
            <label>备注: <font style="color: red">*</font></label>
        </td>
        <td width="70%">
            <textarea style="width: 100%; height: 80px;" id="desption" onblur="getText()" placeholder="请您填写描述信息"></textarea>
        </td>
    </tr>
    </tbody>
</table>
</body>
</html>
